package gov.cn.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import gov.cn.user.entity.UserInfo;
import gov.cn.user.exception.UserException;

import java.io.Serializable;

public interface UserService extends IService<UserInfo> {
    IPage findByPage(int pageNum, int pageSize, UserInfo userInfo);

    void enableById(Serializable id) throws UserException;

    void updById(UserInfo user) throws UserException;

    void add(UserInfo user) throws UserException;

    boolean checkName(UserInfo userInfo);
}
